package com.newviews.tcmip.web.controller;

import com.newviews.tcmip.common.model.ResultModel;
import com.newviews.tcmip.pojo.po.EtcmContackUsPo;
import com.newviews.tcmip.pojo.po.EtcmUiElPo;
import com.newviews.tcmip.pojo.vo.ui.EtcmUiElRespVO;
import com.newviews.tcmip.service.inf.EtcmUiElServiceInf;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * UI设计-UI显示的元素 前端控制器
 * </p>
 *
 * @author lxc
 * @since 2024-02-29
 */
@RestController
@RequestMapping("/etcm/ui/el")
@Api(tags = "UI设计")
public class EtcmUiElController {
    @Autowired
    private EtcmUiElServiceInf etcmUiElService;

    @GetMapping("/data")
    @ApiOperation(value = "获取表格信息")
    public ResultModel<List<EtcmUiElRespVO>> getData(@RequestParam String uiCode,@RequestParam String langCode){
        return etcmUiElService.getData(uiCode,langCode);
    }


    @GetMapping("/us")
    @ApiOperation(value = "联系我们")
    public ResultModel<List<EtcmContackUsPo>> getContackUs( @RequestParam String langCode){
        return etcmUiElService.getContackUs(langCode);
    }
}
